<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
 
	<style>
*{margin:0; padding:0; font-size:14px;}
.nav{list-style:none; height:30px; border-bottom:10px solid #c00; margin-top:20px; padding-left:50px;}
.nav li{float:left}
.nav li a{text-decoration:none;display:block; height:30px;text-align:center; line-height:30px; width:120px; margin-left:1px;background-color:#ccc;}
/* margin-top:-10px;向反方向移动 */
.nav li a:hover{ background-color:#f60; color:#fff; height:40px;margin-top:-10px; line-height:40px;}
   </style>
</head>
    
    <body>
     	<ul class="nav">
         <li><a href="#" class="on">首   页</a></li>
         <li><a href="#">新闻快讯</a></li>
         <li><a href="#">产品展示</a></li>
         <li><a href="#">联系我们</a></li>
      </ul>
    </body>
</html>
